package org.example.design.strategy.calc;

/**
 * @author huangshen
 * @version 0
 * @description Context
 * @since 2022/2/8 10:21
 */
public class Context {

    private CalcStrategy strategy;

    public Context(CalcStrategy strategy) {
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2) {
        return strategy.doOperation(num1,num2);
    }
}
